Skip to main content

textAlign

Type

property

Summary

Specifies how text is aligned or justified in a field or button.

Syntax

set the textAlign [of <line>] of {<button> | <field>} to {left | center | right}

Description

Use the textAlign property to change the alignment of individual lines of text in a field, the whole field or buttons.

By default, the textAlign of newly created fields and buttons is "left".

Examples

set the textAlign of field "myField" to center
set the textAlign of line 1 of field "myField" to right

keyword: field, button

object: button

property: borderWidth, vgrid, acceleratorText, dontWrap, formattedText, spaceAbove, backgroundColor, margins, listBehavior, hidden, textSize, firstIndent, tabstops, spaceBelow, listStyle, rightIndent, listDepth, hgrid, printTextAlign, hScrollbar, borderColor, formattedWidth

glossary: property

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?